import os
from colorama import init, Fore
import router
import database
if __name__ == '__main__':
    connection = database.get_connection()
    init(autoreset=True)
    os.system('cls')
    while True:
        print(Fore.GREEN+"\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^")
        word = input(Fore.LIGHTWHITE_EX+"Grape_> ")
        if word == None or len(word) == 0:
            print(Fore.RED+"输入不能为空 '> - <'  !!!")
        print('\n')
        router.router(connection, word)
